package com.smmisia.article.service;

import com.smmisia.article.entity.ScenicSpot;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smmisia.article.request.ScenicSpotCreateRequest;
import com.smmisia.article.request.ScenicSpotUpdateRequest;
import com.smmisia.article.response.ScenicSpotResponse;
import com.smmisia.common.Result.Result;
import jakarta.validation.Valid;

import java.util.List;


public interface ScenicSpotService extends IService<ScenicSpot> {

    Result<Boolean> create(@Valid ScenicSpotCreateRequest scenicSpotCreateRequest);

    Result<Boolean> updateScenicSpot(@Valid ScenicSpotUpdateRequest request);

    Result<Boolean> deleteScenicSpot(Integer id);

    Result<ScenicSpotResponse> getScenicSpotById(Integer id);

    Result<List<ScenicSpotResponse>> listScenicSpot();

    Result<List<ScenicSpotResponse>> getScenicSpotByAddress(Integer address);
}
